package com.dt.dubai.mber.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 顾客等级表
 */

@Data
@Table(name = "dt_mber_customer_level")
@EqualsAndHashCode(callSuper = false)
public class MberCustomerLevelEntity extends BaseEntity {

    //顾客登录记录ID
    @NotNull(message = "customerRecordId参数不能为空")
    Long customerRecordId;

    //等级
    @Length(min = 0, max = 6, message = "level参数最大长度不6")
    String level;

    //积分
    Integer integral;


}
